# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: David Ell <david at bytesizebits dot net>

pkgname=linuxdoc-tools
pkgver=0.9.68
pkgrel=1
pkgdesc="Convert LinuxDoc SGML source into other formats"
arch=('i686' 'x86_64')
url="http://packages.debian.org/sid/linuxdoc-tools"
license=('GPL')
depends=('jade')
optdepends=('groff' 'texlive-bin')
source=(http://ftp.de.debian.org/debian/pool/main/l/${pkgname}/${pkgname}_${pkgver}.tar.gz)
md5sums=('68434f800ab3b68f44da790cc61cf766')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i '/extern int yyleng;/d' rtf-fix/rtf2rtf.l
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
  make DESTDIR="$pkgdir/" install
}
